//
//  HEIMMessage.h
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/27.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HEIMGlobalDefs.h"
#import "HEIMMessageObjectProtocol.h"

NS_ASSUME_NONNULL_BEGIN
 

@interface HEIMMessage : NSObject

/**
 *  消息ID,唯一标识
 */
@property (nonatomic, copy) NSString *messageId;

@property (nonatomic, copy) NSString *userIcon;

@property (nonatomic, copy) NSString *username;

/**
 *  用户角色
 */
@property (nonatomic, assign) HEActorType actor;
 
/**
 *  消息来源，用户id
 */
@property (nullable,nonatomic,copy) NSString *from;

/**
 *  接收消息来源，用户id
 */
@property (nullable,nonatomic,copy) NSString *to;


/**
 *  引用id，如图文问诊的唯一id
 */
@property (nullable,nonatomic,copy) NSString *refrenceId;

/// 消息标题
@property (nonatomic, copy) NSString *title;

/// 消息文本
@property (nonatomic, copy) NSString *text;
 
/// 聊天消息类型
@property (nonatomic, assign) HEIMMessageType type;

/// 使用功能模块聊天消息类型  im 、 图文问诊
@property (nonatomic, assign) HEIMUserModelType modelType;

/// 是否是自己发消息
@property (nonatomic, assign) BOOL isOwn;


/**
 *  消息附件内容
 */
@property (nullable,nonatomic,strong) id<HEIMMessageObjectProtocol> messageObject;

@end

NS_ASSUME_NONNULL_END
